'use strict';

const { Controller } = require('egg');

class HomeController extends Controller {
  async index(params) {
    const { ctx } = this;
    // console.log('实例,参数', this.app, ctx.query, ctx.header.authorization)
    // console.log('请求', ctx.request, ctx.response)
    this.logger.debug('current user: %j');
    ctx.body = 'hi, egg';
  }
}

module.exports = HomeController;
